#include<stdio.h>
#include<math.h>
#include <stdlib.h>
#include <time.h> 

int main()
{
	int aim,score,times=1,n;
	srand(time(NULL));
	aim =10+(rand()%90);  
	n =6+(rand()%3);	
	int i;
	for(i=1;i<=n-1;i++){
		times *=10;
	}
	
	int t,count=0;
	while (times!=0)
	{
		scanf("%d",&t);
		count++;
		if (t<0)
		{
			printf("game over");
			break;
		}
		if (t==aim)
		{
			printf("nice try!right!   ntr\n");
			printf("Ϊ%d",count); 
			break;
		}
		t>aim? printf("too big\n"):printf("too small\n");
		times = times/10;
		
	}
	if (times==0)
	{
		printf("game over！！");
	}
	return 0;
}
